package com.itjeffrey.autocode;

import org.activiti.spring.boot.SecurityAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

/**
 * 启动类入口
 */
@SpringBootApplication
@EnableAsync //启用异步线程处理
@MapperScan("com.itjeffrey.autocode.mapper") //mapper扫描
@EnableAutoConfiguration(exclude = {MultipartAutoConfiguration.class, SecurityAutoConfiguration.class}) //应排除有冲突的SecurityAutoConfiguration类
public class AutoCodeApplication {

    public static void main(String[] args) {
        SpringApplication.run(AutoCodeApplication.class, args);
    }

}
